//
//  M1ChooseMateVC.m
//  NewMarryU
//
//  Created by Cedar on 2018/7/13.
//  Copyright © 2018年 Cedar. All rights reserved.
//

#import "M1ChooseMateVC.h"
#import "M1EditDetailsCell.h"

@interface M1ChooseMateVC ()

@property (nonatomic, strong) NSArray *m1_titleArr;

@property (nonatomic, strong) NSMutableArray *m1_dataArr;

@end

@implementation M1ChooseMateVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self.m1_tableView mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(UIEdgeInsetsMake(0, 0, STATUS_HEIGHT + 44 + 65, 0));
    }];
    
    [self.m1_tableView registerNib:[UINib nibWithNibName:@"M1EditDetailsCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:m1_tableViewCellIdentifier];
    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return self.m1_titleArr.count;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 54;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    M1EditDetailsCell *cell = [tableView dequeueReusableCellWithIdentifier:m1_tableViewCellIdentifier];
    
    cell.m1_title.text = self.m1_titleArr[indexPath.row];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return cell;
}


- (NSArray *)m1_titleArr{
    if (!_m1_titleArr) {
        _m1_titleArr = [[NSArray alloc] initWithObjects:
                        @"年龄",
                        @"身高",
                        @"年收入",
                        @"工作生活在",
                        @"户籍",
                        @"婚姻状况",
                        @"职业",
                        @"信仰",
                        @"饮酒",
                        @"吸烟",
                        @"家中排行",
                        @"有无子女",
                        @"体重",
                        @"星座", nil];
    }
    return _m1_titleArr;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
